//
//  NetworkTools.h
//  AFN-OC封装
//
//  Created by user on 16/4/18.
//  Copyright © 2016年 user. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking/AFNetworking.h>
typedef NS_ENUM(NSUInteger, FANRequestMethod) {
    FANRequestMethodGet,
    FANRequestMethodPost
};
@interface NetworkTools : AFHTTPSessionManager

+ (instancetype)sharedTools;

- (void)request:(FANRequestMethod)method andUrlString:(NSString *)urlString andParameter:(id)parameter andBlock:(void(^)(id , NSError *))finished;

- (void)upload:(NSString *)urlString and:(NSDictionary *)datas andParameter:(id)parameter andBlock:(void(^)(id , NSError *))finished;

@end
